package com.example.keyboardEvent;

import java.awt.event.*;

/**
 * @Author 郅占伟
 * @ClassName MyMouseEvent
 * @Description TODO
 * @Date 2024年05月10日
 * @Version: 1.0
 */
public class MyKeyBoardEvent extends KeyAdapter {

    @Override
    public void keyTyped(KeyEvent e) {
        System.out.println("键盘类型：" + e.getKeyChar());
    }

    @Override
    public void keyPressed(KeyEvent e) {
        System.out.println("键盘被按压了：" + e.getKeyChar());
    }

    @Override
    public void keyReleased(KeyEvent e) {
        System.out.println("键盘按键释放：" + e.getKeyChar());
    }
}
